<?php
/**
 * Created by PhpStorm.
 * User: xutao
 * Date: 2018/11/9
 * Time: 11:29
 */
//管理员验证器
namespace app\admin\validate;

use think\Validate;

class AdminValidate extends Validate{


    protected $rule =   [
        'username'  => 'require|max:255',
        'real_name'   => 'require|max:25',
    ];

    protected $message  =   [
        'username.require' => '登录账号必须',
        'username.max'     => '登录账号最多不能超过255个字符',
        'real_name.require' => '真实姓名必须',
        'real_name.max'     => '真实姓名最多不能超过255个字符',
    ];




}